CFILE:=$(wildcard *.c)
#OFILE=$(CFILE:.c=.o)
#OFILE:=$(subst .c,.o,$(CFILE))
OFILE:=$(patsubst %.c,%.o,$(CFILE))
#OBJ:=$(CFILE:.c=)
#OBJ=$(subst .c,,$(CFILE))
OBJ:=$(patsubst %.c,%,$(CFILE))
empty:=
space:=$(empty) $(empty) 
var:= $(space)a b c$(space)
reverse= $(2) $(1)
container:=$(shell pwd)
ERR=$(error test error)
WARN=$(warning test warning)



func:
	#echo $(CFILE) $(OFILE) $(OBJ)
	#echo $(var) #$(strip $(var))
	#echo $(findstring a,a b c)
	#echo $(findstring a,b c)
	#echo $(filter %.c %.h, test.c baichen cal.h)
	#echo $(filter-out %.c %.h, test.c baichen cal.h)
	#echo $(sort bar foo apple egg)
	#echo $(word 2,bar foo apple egg)
	#echo $(word 2,bar foo apple egg)
	#echo $(words bar foo apple egg)
	#echo $(firstword bar foo apple egg)
	#echo $(dir c/test.c test)
	#echo $(notdir c/test.c test)
	#echo $(suffix c/test.c test)
	#echo $(basename c/test.c test .c)
	#echo $(addprefix .c, name baichen)	
	#echo $(addsuffix .c, name baichen)	
	#echo $(join aaa bbb , 111 222 333)
	#echo $(foreach n,$(var),$(n).c)
	#echo $(if $(empty), $(var), $(CFILE))
	#echo $(call reverse, a, b)
	#echo $(origin var)
	#echo $(origin $@)
	#echo $(shell echo test.c)
	#echo $(container)


#$(WARN)
#$(ERR)

#OBJ=baichen
